<script setup>
import {ref,reactive} from 'vue'
import { muajax,$message } from '@/common'

const remark    =	ref('');//数据
const k         =	ref('');//数据
let param		=	reactive({});//参数
const visible	=	ref(false);//显示
const forms		=	ref();//表单ref
const loading	=	ref(false);//提交中

// 显示控制
function show(show,pms,pid){
    visible.value=show;
    remark.value=pms||'';
    k.value=pid||0;
    loading.value=false;
}
// 对外导出
defineExpose({
	show
})
</script>
<template>
    <a-modal
		v-model:visible="visible"
		width="420px"
		title="备注"
		:maskClosable="false"
		@ok="loading=true;$emit('setremark',remark,k)"
		cancelText="取消"
		okText="确定"
		:confirmLoading="loading"
	>
		<a-form
		ref="forms"
		>
			<a-form-item
				label="备注"
				name="password"
				:labelCol="{span:3}"
			>
				<a-textarea
					size="large"
					placeholder="请输入"
					v-model:value="remark"
				>
				</a-textarea>
			</a-form-item>
		</a-form>
	</a-modal>
</template>
<style lang="less" scoped>

</style>